import request from '@/utils/request'
/**
 * 导出word
 **/

// 导出word
export const SampleWord = data => request.post('/api/v1/SampleExportWord/ExportWord', data);
// 下载导出文件的压缩包
export const DownloadExportWordZip = params => request('/api/v1/SampleExportWord/DownloadExportWordZip', { params: params, responseType: 'blob' });

// 导出Excel
export function ExportExcel(data) {
  return request({
    url: "/api/v1/SampleExportExcel/ExportExcel",
    method: "post",
    timeout: 1000000,
    data,
  });
}

export const DownloadExportExcel = params => request('/api/v1/SampleExportExcel/DownloadExportExcel', { params: params, responseType: 'blob' });

export const DownloadExportWord = params => request('/api/v1/SampleExportWord/DownloadExportWord', { params: params, responseType: 'blob' });
